import React, {Component} from 'react';
import WaterFall from '../common/WaterFall';

class Body extends Component{
    constructor(props){
        super();
        this.state={
            curColnums: 0,
        };
    }
    componentDidMount(){
        // let appAllContentCtrl = this.appAllContent;
        //监听浏览器窗口大小的变化
        window.addEventListener("resize", function(){
            
        }, false);
    }
    render(){
        return (
            <div className='App-allcontent' ref={(ele)=>this.appAllContent=ele}>
                <WaterFall columnNums={this.state.curColnums}></WaterFall>
            </div>
        );
    }
}

export default Body;